import { Column, Entity, OneToMany } from "typeorm";
import { Base } from "libs/Entities/base.entity";
import { Blog } from "./blog.entity";

@Entity()
export class Category extends Base{
    @Column({
        type: 'varchar',
    })
    name: string;
    @OneToMany(() => Blog, Blog => Blog.category)
    blogs: Blog[];

}
